#include "SentenceIndexerNode.h"

#include "Output/Console.h"
#include "ScriptCompiler/Token/Token.h"

void CSentenceIndexerNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"[");

    //print indexers
    for (int32_t i = 0; i < Indexers.Num(); i++)
    {
        Indexers[i]->DebugPrint(0);

        if (i != Indexers.Num() - 1)
        {
            WH::Print(U",");
        }
    }

    WH::Print(U"]");

}

std::shared_ptr<CScriptToken> CSentenceIndexerNode::GetFirstToken()
{
    return LeftBracket;
}
